import React, { ReactElement, ReactNode, Fragment } from 'react'
import styles from '@/pages/index.less'

interface Props {
    children?: ReactNode,
    leftTitle?: string
}

export default function index({ children, leftTitle }: Props): ReactElement {
    return (
        <Fragment>
           <div className={ styles.flex }>
                <span>
                    { leftTitle }
                </span>
                <div>
                    { children }
                </div>
           </div>
        </Fragment>
    )
}
